<?php

namespace app\adminapi\controller\v2;

use app\adminapi\controller\AuthController;
use app\model\plan\PlanStaff;
use app\model\staff\Staff;
use think\Request;

class Pdf
{
    public function index(Request $request)
    {
        $id = input('id', 66);
        $staff = Staff::getOne($id);
        $planStaff = PlanStaff::where('staff_id', $staff->id)
            ->find();
        return view('pdf/index', [
            'staff' => $staff,
            'planStaff' => $planStaff,
        ]);
    }
}